package com.house.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.house.dao.HouseDao;
import com.house.pojo.House;
import com.house.service.HouseService;



@Transactional/*事务提交*/
@Service
public class HouseServiceImpl implements HouseService {
	
	@Autowired
	private HouseDao houseDao;
	
	

	@Override
	public List<House> selectAllHousePage() {
		// TODO Auto-generated method stub
		return houseDao.selectAllHousePage();
	}

	@Override
	public List<House> selectUserHouse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return houseDao.selectUserHouse(map);
	}

	@Override
	public List<House> selectPage(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return houseDao.selectPage(map);
	}

	@Override
	public int insertHouse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return houseDao.insertHouse(map);
	}

	@Override
	public int deleteHouse(int houseno) {
		// TODO Auto-generated method stub
		return houseDao.deleteHouse(houseno);
	}

	@Override
	public House selectOneHouse(int houseno) {
		// TODO Auto-generated method stub
		return houseDao.selectOneHouse(houseno);
	}

	@Override
	public int updateHouse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return houseDao.updateHouse(map);
	}

}
